<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WeChatDoctor extends Model
{
    protected $table = 'wechat_doctors';

    protected $fillable = [
    	'openid',
    	'nickname',
    	'sex',
    	'city',
    	'province',
    	'remark',
    	'groupid',
    	'headimgurl',
    	'country',
    	'subscribe'
    ];

    public function wechatDoctorInfo(){
        return $this->hasOne('App\Models\WeChatDoctorInfo', 'wechat_doctor_id');
    }
}
